using System.Collections;
using Converters;
using Infragistics.Win.UltraWinGrid;

namespace SettingsView.Search
{
	public class CustomCnValueComparer : IComparer
	{
		int IComparer.Compare(object x, object y)
		{
			object obj = ((x is UltraGridCell) ? ((UltraGridCell)x).Value : x);
			object obj2 = ((y is UltraGridCell) ? ((UltraGridCell)y).Value : y);
			return ResultFormat.FormatCnValueString(obj).CompareTo(ResultFormat.FormatCnValueString(obj2));
		}
	}
}
